package ink.sunflowerk.service.impl;


import ink.sunflowerk.dao.MyFileMapper;
import ink.sunflowerk.entity.MyFile;
import ink.sunflowerk.service.MyFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class MyFileServiceImp  implements MyFileService {

    @Autowired
    private MyFileMapper myFileMapper;

    @Override
    public void addOne(MyFile myFile) {
        myFileMapper.addOne(myFile);
    }

    @Override
    public MyFile getOneByFid(int fid) {
        return myFileMapper.getOneByFid(fid);
    }

    @Override
    public MyFile getOneByFmd5(String fmd5) {
        return myFileMapper.getOneByFmd5(fmd5);
    }
}
